package cn.xeblog.plugin.builder;

import cn.xeblog.commons.entity.Request;
import cn.xeblog.commons.enums.Action;

/**
 * 请求构建器
 *
 * @author anlingyi
 * @date 2020/8/20
 */
public class RequestBuilder {

    /**
     * 构建请求对象
     *
     * @param body   消息体
     * @param action 行为
     * @return 构建的请求对象
     */
    public static Request build(Object body, Action action) {
        return new Request(body, action);
    }

}
